Fix a problem with disabled mouse movement events.
authorEli Zaretskii <eliz@gnu.org>
Tue, 14 Aug 2012 18:25:47 +0000 (21:25 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 14 Aug 2012 18:25:47 +0000 (21:25 +0300)
 src/keyboard.c (command_loop_1): Reset ignore_mouse_drag_p flag each
 iteration through the command loop.  Fixes a problem whereby mouse
 movements are ignored until the first mouse click.

src/ChangeLog
src/keyboard.c

index e31ebe529e0e5b6a3324392f70fc60515099ff43..3e0cdd00e1d17494e3de538698313bdd6b8b78cb 100644 (file)
@@ -1,3 +1,9 @@
+2012-08-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * keyboard.c (command_loop_1): Reset ignore_mouse_drag_p flag each
+       iteration through the command loop.  Fixes a problem whereby mouse
+       movements are ignored until the first mouse click.
+
 2012-08-14  Paul Eggert  <eggert@cs.ucla.edu>
 
        Use bool, not int, for Lisp booleans.
index a286e9f3036386bd7d4060ccb4fa74137c3c59b4..73fedc1b35f6e91131c96f701fe093254a23069c 100644 (file)
@@ -1393,6 +1393,12 @@ command_loop_1 (void)
 
       Vdeactivate_mark = Qnil;
 
+      /* Don't ignore mouse movements for more than a single command
+        loop.  (This flag is set in xdisp.c whenever the tool bar is
+        resized, because the resize moves text up or down, and would
+        generate false mouse drag events if we don't ignore them.)  */
+      ignore_mouse_drag_p = 0;
+
       /* If minibuffer on and echo area in use,
         wait a short time and redraw minibuffer.  */